#e
#Title[`mʏeP-Easy-]
#Text[ʏe]
#ScriptVersion[2]
#PlayLevel[Easy]
#Player[FREE]

script_enemy_main {
 let img = "script\img\ExRumia.png";
 let pet = 0;
 let angle = 0;
 let row = 0;

 @Initialize {
  SetX(GetCenterX);
  SetY(GetCenterY - 120);
  SetLife(4000);

  LoadGraphic(img);
  SetTexture(img);
  SetGraphicRect(64, 0, 128, 64);

  TMain;
 }

 @MainLoop {
  SetCollisionA(GetX, GetY, 24);
  SetCollisionB(GetX, GetY, 24);

  pet += 1;
  if(pet == 90) {
   loop(12) {
    CreateShot01(GetX, GetY, 1.5, angle + row, BLUE11, 0);
    angle += 30;
   }
   row += 7;
   pet = 0;
  }

  yield;
 }

 @DrawLoop {
  DrawGraphic(GetX, GetY);
 }

 @Finalize {
  DeleteGraphic(img);
 }

 task TMain {
  yield;

  TShot;
 }

 task TShot {
  yield;
 }

}